/**
 * 
 */
package net.frenopatico.kynes.dao;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * Static Entity Manager Factory.
 * 
 * @author Eduardo Ramírez <edu.kynes@gmail.com>
 *
 */
public final class EMF {
    /**
     * Static instance.
     */
    private static final EntityManagerFactory EMFINSTANCE = Persistence.createEntityManagerFactory( "transactions-optional" );

    /**
     * Empty constructor.
     */
    private EMF() {}

    /**
     * @return The singleton EntityManager.
     */
    public static EntityManagerFactory get() {
        return EMFINSTANCE;
    }
}
